package com.cdks.wuxiu.api.component.constant;

/**
 * 常量定义
 */
public class Constant {
    //列表分页大小
    public static final int LIST_PAGE_SIZE   = 30;
    //短信验证码次数限制
    public static final int SMS_TIMES_LIMIT  = 5;
    //连续发送消息条数限制
    public static final int MSG_TIMES_LIMIT  = 3;

    //时间常量
    public static final int TIME_VALUE_30_SECONDS  = 30;
    public static final int TIME_VALUE_60_SECONDS  = 60;
    public static final int TIME_VALUE_10_MINUTES  = 10 * 60;
    public static final int TIME_VALUE_30_MINUTES  = 30 * 60;
    public static final int TIME_VALUE_01_HOURS    = 60 * 60;
    public static final int TIME_VALUE_03_HOURS    = 3 * 60 * 60;
    public static final int TIME_VALUE_24_HOURS    = 24 * 60 * 60;
    public static final int TIME_VALUE_02_DAYS     = 2 * 24 * 60 * 60;
    public static final int TIME_VALUE_03_DAYS     = 3 * 24 * 60 * 60;
    public static final int TIME_VALUE_07_DAYS     = 7 * 24 * 60 * 60;

    //内置用户id
    public static final long USERID_SYSTEM  = 1000; //系统
    public static final long USERID_SERVER  = 1001; //客服
    public static final long USERID_OPERAT  = 1002; //运营

    //账号状态
    public static final int ACCOUNT_STATUS_BANNED   = 0; //禁用
    public static final int ACCOUNT_STATUS_NORMAL   = 1; //正常
    public static final int ACCOUNT_STATUS_DELETED  = 2; //注销

    //账号类型
    public static final int ACCOUNT_TYPE_USER      = 1; //用户
    public static final int ACCOUNT_TYPE_TEST      = 2; //测试
    public static final int ACCOUNT_TYPE_PLAT      = 3; //官方
    public static final int ACCOUNT_TYPE_KEFU      = 4; //客服
    public static final int ACCOUNT_TYPE_AUDT      = 5; //市场审核

    //用户在线状态
    public static final int USER_STATUS_OFFLINE  = 0; //离线
    public static final int USER_STATUS_BUSY     = 1; //忙碌
    public static final int USER_STATUS_IDLE     = 2; //空闲

    //功能使能
    public static final int ENABLE_NO   = 0;
    public static final int ENABLE_YES  = 1;

    //个人信息状态
    public static final int INFO_STATUS_HEAD   = 1; //头像待审
    public static final int INFO_STATUS_NAME   = 2; //昵称待审
    public static final int INFO_STATUS_AUTH   = 4; //认证待审    

    //消息类型
    public static final int MSG_TYPE_POPUP  = 101; //弹窗消息
    public static final int MSG_TYPE_HINT   = 102; //提示
    public static final int MSG_TYPE_CALL   = 103; //通话
    public static final int MSG_TYPE_NOTICE = 104; //公告

    public static final int MSG_TYPE_TEXT   = 200; //文字
    public static final int MSG_TYPE_IMAGE  = 201; //图片
    public static final int MSG_TYPE_VOICE  = 202; //语音
    public static final int MSG_TYPE_LINK   = 203; //链接
    public static final int MSG_TYPE_VIDEO  = 204; //视频
    public static final int MSG_TYPE_QUOTE  = 205; //引用
    
    public static final int MSG_TYPE_BOOK   = 210; //预约通话

    public static final int MSG_TYPE_CALLOUT  = 300; //发起呼叫
    public static final int MSG_TYPE_RINGING  = 301; //被叫振铃
    public static final int MSG_TYPE_ANSWER   = 302; //被叫接听
    public static final int MSG_TYPE_CONFIRM  = 303; //主叫确认
    public static final int MSG_TYPE_HANGUP   = 304; //通话挂断

    //通话类型
    public static final int CALL_TYPE_SINGLE_AUDIO  = 1; //语音单聊
    public static final int CALL_TYPE_SINGLE_VIDEO  = 2; //视频单聊
    public static final int CALL_TYPE_RANDOM_AUDIO  = 3; //随机语音
    public static final int CALL_TYPE_RANDOM_VIDEO  = 4; //随机视频

    //通话状态
    public static final int CALL_STATUS_WAITING  = 0; //等待接听
    public static final int CALL_STATUS_STARTED  = 1; //开始通话
    public static final int CALL_STATUS_STOPPED  = 2; //通话结束

    //通话结束类型
    public static final int CALL_ENDTYPE_ERROR    = 0; //异常挂断
    public static final int CALL_ENDTYPE_CALLER   = 1; //主叫挂断
    public static final int CALL_ENDTYPE_CALLEE   = 2; //被叫挂断
    public static final int CALL_ENDTYPE_TIMEOUT  = 3; //接听超时
    public static final int CALL_ENDTYPE_BUSY     = 4; //被叫忙
    public static final int CALL_ENDTYPE_SYSTEM   = 5; //系统挂断

    //用户操作
    public static final int USER_ACTION_CANCEL   = 0; //取消
    public static final int USER_ACTION_REQUEST  = 1; //请求
    public static final int USER_ACTION_HIDE     = 1; //隐藏
    public static final int USER_ACTION_COLLECT  = 1; //收藏
    public static final int USER_ACTION_FOCUS    = 1; //关注
    public static final int USER_ACTION_PRAISE   = 1; //点赞
    public static final int USER_ACTION_BLOCK    = 1; //屏蔽
    public static final int USER_ACTION_AGREE    = 2; //同意
    public static final int USER_ACTION_REFUSE   = 3; //拒绝

    //收藏类型
    public static final int COLLECT_TYPE_STORY   = 1; //电台故事
    public static final int COLLECT_TYPE_NATURE  = 2; //自然之声
    public static final int COLLECT_TYPE_QUIZ    = 3; //心理测试

    //认证角色
    public static final int AUTH_ROLE_TALKER     = 0; //倾诉者
    public static final int AUTH_ROLE_LISTENER   = 1; //倾听者
    public static final int AUTH_ROLE_CONSULT    = 2; //咨询师
    public static final int AUTH_ROLE_ANSWER     = 3; //已认证用户

    //认证等级
    public static final int AUTH_LEVEL_NONE      = 0; //未认证
    public static final int AUTH_LEVEL_STUDY     = 1; //见习
    public static final int AUTH_LEVEL_BRASS     = 2; //铜牌
    public static final int AUTH_LEVEL_SILVER    = 3; //银牌
    public static final int AUTH_LEVEL_GOLD      = 4; //金牌

    //认证类型
    public static final int AUTH_TYPE_VIDEO      = 1; //视频
    public static final int AUTH_TYPE_REALNAME   = 2; //实名
    public static final int AUTH_TYPE_SLOGAN     = 4; //个性签名
    public static final int AUTH_TYPE_WECHAT     = 8; //绑定公众号
    public static final int AUTH_TYPE_PORTRAIT   = 16; //形象照
    public static final int AUTH_TYPE_VOICE      = 32; //声音名片

    //认证状态
    public static final int AUTH_STATUS_NONE     = 0; //未认证
    public static final int AUTH_STATUS_WAIT     = 1; //待审
    public static final int AUTH_STATUS_PASS     = 2; //通过

    //审核信息类型
    public static final int AUDIT_TYPE_PORTRAIT   = 1; //头像
    public static final int AUDIT_TYPE_NICKNAME   = 2; //昵称
    public static final int AUDIT_TYPE_VIDEO      = 3; //视频
    public static final int AUDIT_TYPE_REALNAME   = 4; //实名
    public static final int AUDIT_TYPE_SLOGAN     = 5; //个性签名
    public static final int AUDIT_TYPE_VOICE      = 6; //声音名片
    public static final int AUDIT_TYPE_PHOTO      = 7; //生活照

    //审核状态
    public static final int AUDIT_STATUS_WAIT     = 0; //待审
    public static final int AUDIT_STATUS_PASS     = 1; //通过
    public static final int AUDIT_STATUS_REFUSE   = 2; //拒绝

    //数据状态
    public static final int DATA_STATUS_DISABLE    = 0; //禁用
    public static final int DATA_STATUS_ENABLE     = 1; //启用
    public static final int DATA_STATUS_HIDDEN     = 2; //隐藏

    //用户性别
    public static final int USER_SEX_UNKNOWN  = 0; //未知
    public static final int USER_SEX_MALE     = 1; //男
    public static final int USER_SEX_FEMALE   = 2; //女

    //用户邀请绑定状态
    public static final int INVITE_STATUS_UNBIND  = 0; //未绑定
    public static final int INVITE_STATUS_PRBIND  = 1; //预绑定
    public static final int INVITE_STATUS_BINDED  = 2; //已绑定
    public static final int INVITE_STATUS_REFUSE  = 3; //禁止绑定

    //心情列表
    public static final int MOOD_LIST_ALL   = 1; // 全部
    public static final int MOOD_LIST_FANS  = 2; // 关注
    public static final int MOOD_LIST_MINE  = 3; // 我的

    //心情类型
    public static final int MOOD_TYPE_ONLY_TEXT   = 1; // 纯文字
    public static final int MOOD_TYPE_TEXT_IMAGE  = 2; // 文字+图片
    public static final int MOOD_TYPE_ONLY_AUDIO  = 3; // 纯语音
    public static final int MOOD_TYPE_TEXT_VIDEO  = 4; // 文字+视频
    public static final int MOOD_TYPE_TEXT_LINK   = 5; // 文字+链接

    //心情评论列表
    public static final int REPLY_LIST_ALL   = 1; // 全部
    public static final int REPLY_LIST_MINE  = 2; // 仅与我有关

    //用户列表
    public static final int USER_LIST_MALE    = 1; // 男性
    public static final int USER_LIST_FEMALE  = 2; // 女性
    public static final int USER_LIST_NEW     = 3; // 新人

    //收支类型
    public static final int COST_TYPE_BEAN   = 1; //心豆
    public static final int COST_TYPE_COIN   = 2; //金币
    public static final int COST_TYPE_SCORE  = 3; //积分

    //付费模式
    public static final int PAY_MODE_FIRST  = 1; //预付费（即账户余额必须大于需要支付的费用）
    public static final int PAY_MODE_LATER  = 2; //后付费

    //支付方式
    public static final int PAY_TYPE_ALIPAY  = 1; //支付宝
    public static final int PAY_TYPE_WXPAY   = 2; //微信
    public static final int PAY_TYPE_BANK    = 3; //银行卡
    public static final int PAY_TYPE_APPLE   = 4; //苹果支付

    //支付状态
    public static final int PAY_STATUS_NOPAY  = 0; //未支付
    public static final int PAY_STATUS_PAYED  = 1; //已支付
    public static final int PAY_STATUS_ERROR  = 2; //挂单

    //收支统计类型
    public static final int STATIS_TYPE_INWORK    = 1; //工作收入
    public static final int STATIS_TYPE_UNWORK    = 2; //非工作收入
    public static final int STATIS_TYPE_RECHARGE  = 3; //充值
    public static final int STATIS_TYPE_CONSUME   = 4; //消费
    public static final int STATIS_TYPE_WITHDRAW  = 5; //提现
    public static final int STATIS_TYPE_INVITE    = 6; //邀请

    //积分状态
    public static final int SCORE_STATUS_UNUSE  = 0; //未使用
    public static final int SCORE_STATUS_USED   = 1; //已使用 

    //自然之声列表
    public static final int NATURE_LIST_ALL   = 1; // 全部
    public static final int NATURE_LIST_SAVE  = 2; // 收藏    

    //电台故事列表
    public static final int RADIO_LIST_ALL   = 1; // 全部
    public static final int RADIO_LIST_FANS  = 2; // 关注    
    public static final int RADIO_LIST_SAVE  = 3; // 收藏    

    //心理测试列表
    public static final int QUIZ_LIST_ALL   = 1; // 全部
    public static final int QUIZ_LIST_SAVE  = 2; // 收藏

    //账号封禁类型
    public static final int ACTION_TYPE_BANNED  = 1; // 封禁
    public static final int ACTION_TYPE_UNSEAL  = 2; // 解封

    //账号封禁类型
    public static final int RECORD_STATUS_START  = 1; // 开始
    public static final int RECORD_STATUS_STOP   = 2; // 停止

    //聊天
    public static final int PRICE_MESSAGE_VOICE  = 20; // 语音消息单价
    public static final int PRICE_MESSAGE_OTHER  = 10; // 其他消息单价
    public static final int PRICE_CALL_MINAUDIO  = 100; //语音通话最低收费单价
    public static final int FREE_CALL_NUM        = 3; //每日免费通话次数
    public static final int FREE_CALL_MINUTE     = 1; //每日免费通话分钟数

    //预约状态
    public static final int BOOK_STATUS_NOPAY    = 0; //等待对方支付
    public static final int BOOK_STATUS_PAYED    = 1; //双方均已支付
    public static final int BOOK_STATUS_START    = 2; //咨询服务已开始
    public static final int BOOK_STATUS_STOP     = 3; //咨询服务已结束
    public static final int BOOK_STATUS_DROP     = 4; //预约单已取消

    //预约用户角色
    public static final int BOOK_ROLE_PAYER      = 1; //付费人    
    public static final int BOOK_ROLE_EARNER     = 2; //收费人

    //预约结束原因
    public static final int BOOK_FINISH_PAYER    = 1; //付费人结束    
    public static final int BOOK_FINISH_EARNER   = 2; //收费人结束
    public static final int BOOK_FINISH_SYSTEM   = 3; //系统结束 

    //预约押金状态
    public static final int BOOK_PAYED_PAYER     = 1; //付费人缴纳    
    public static final int BOOK_PAYED_EARNER    = 2; //收费人缴纳
    public static final int BOOK_PAYED_BOTH      = 3; //双方已缴纳 

    //预约签到状态
    public static final int BOOK_SIGNIN_NONE     = 0; //都未签到
    public static final int BOOK_SIGNIN_PAYER    = 1; //付费人签到   
    public static final int BOOK_SIGNIN_EARNER   = 2; //收费人签到
    public static final int BOOK_SIGNIN_BOTH     = 3; //双方已签到   
    
    //封禁对象类型
    public static final int BANNED_TYPE_REMOVE   = 0;//解封
    public static final int BANNED_TYPE_USERID   = 1;//封id
    public static final int BANNED_TYPE_DEVICE   = 2;//封设备
    public static final int BANNED_TYPE_IPADDR   = 3;//封ip
    public static final int BANNED_TYPE_PHONE    = 4;//封手机
}
